package com.question.java.jvm;

/**
 * @Description:
 * @Author: Jun Yang
 * @Time: 2018/9/13 上午10:21
 * @Version: 1.0
 */
public class GCSampleMain {

    private Object instance;

    public GCSampleMain() {
        byte[] m = new byte[20 * 1024 * 1024];
    }

    public static void main(String[] args) {
        GCSampleMain m1 = new GCSampleMain();
        GCSampleMain m2 = new GCSampleMain();

        m1.instance = m2;
        m2.instance = m1;

        m1 = null;
        m2 = null;

        System.gc();
    }
}
